﻿using System;

namespace Inaction.Mapping
{
    [AttributeUsage(AttributeTargets.Property)]
    public class ColumnAttribute : Attribute
    {
        internal string ColumnName { get; set; }
        public bool NeedUpdate { get; set; }
        public bool Mapping { get; set; }
        public ColumnAttribute(string columnName)
        {
            this.ColumnName = columnName;
            NeedUpdate = true;
            Mapping = true;
        }
    }
}